/*****************************************************************************
Copyright (c) 2011 Nokia Siemens Networks. All rights reserved.

This software is proprietary to and embodies the confidential technology 
of Nokia Siemens Networks. Possession, use, or copying of this software 
and media is authorized only pursuant to a valid written license from 
Nokia Siemens Networks.
*****************************************************************************/
package com.fashion.web.actions.management.gallery;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.fashion.model.gallery.Album;

/**
 * Description TODO
 *
 * <br><b>Change Note:</b>
 * <ul>
 * <li>Date:</li>
 * <li>Modifier:</li>
 * <li>Description:</li>
 * </ul>
 *
 * @author TODO created at Jun 12, 2011
 */
public class AlbumDataGridModel {
    private String title;
    private String viceTitle;
    private String keywords;
    private int clickNumber;
    private String id;
    private String cover;
    private String columnName;
    private String columnId;
    private Date date; 
    private int priority;
    private String description;
    
    public static AlbumDataGridModel getInstance(Album album){
        AlbumDataGridModel albumDataGrid = new AlbumDataGridModel();
        albumDataGrid.title = album.getTitle();
        albumDataGrid.viceTitle = album.getViceTitle();
        albumDataGrid.keywords = album.getKeywords();
        albumDataGrid.clickNumber = album.getClickNumber();
        albumDataGrid.id = album.getId();
        albumDataGrid.cover =album.getCover();
        albumDataGrid.columnName = album.getColumn().getName();
        albumDataGrid.columnId = album.getColumn().getId();
        albumDataGrid.date = album.getDate();
        albumDataGrid.priority = album.getPriority();
        albumDataGrid.description = albumDataGrid.getDescription();
        return albumDataGrid;
    }
    
    public static List<AlbumDataGridModel> getInstances(List<Album> albums){
        List<AlbumDataGridModel> albumsDataGrid = new ArrayList<AlbumDataGridModel>();
        for(Album album : albums){
            AlbumDataGridModel albumDataGrid = new AlbumDataGridModel();
            albumDataGrid.title = album.getTitle();
            albumDataGrid.viceTitle = album.getViceTitle();
            albumDataGrid.keywords = album.getKeywords();
            albumDataGrid.clickNumber = album.getClickNumber();
            albumDataGrid.id = album.getId();
            albumDataGrid.cover =album.getCover();
            albumDataGrid.columnName = album.getColumn().getName();
            albumDataGrid.columnId =album.getColumn().getId();
            albumDataGrid.date = album.getDate();
            albumDataGrid.priority = album.getPriority();
            albumDataGrid.description = album.getDescription();
            albumsDataGrid.add(albumDataGrid);
        }
        
        return albumsDataGrid;
    }
    

    
    public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getViceTitle() {
		return viceTitle;
	}

	public void setViceTitle(String viceTitle) {
		this.viceTitle = viceTitle;
	}

	public int getClickNumber() {
		return clickNumber;
	}

	public void setClickNumber(int clickNumber) {
		this.clickNumber = clickNumber;
	}

	public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getCover() {
        return cover;
    }
    public void setCover(String cover) {
        this.cover = cover;
    }
    public String getColumnName() {
        return columnName;
    }
    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }
    public String getColumnId() {
        return columnId;
    }
    public void setColumnId(String columnId) {
        this.columnId = columnId;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public int getPriority() {
        return priority;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getKeywords() {
		return keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}
    
    
    
}
